//
//
//  Utilities.h
//
//  QMovie
//  Created by liurg on 15/8/6.
//  Copyright (c) 2015年 apple. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface Utilities : NSObject {
    
}




+(NSString *)bundlePath:(NSString *)fileName;
+(NSString *)documentsPath:(NSString *)fileName;
+(NSString *)CreateDocumentsFilePathName:(NSString *)fileName;

+ (BOOL)createVideoFolderIfNotExist;

+ (BOOL)createFolderIfNotExist:(NSString *)fileName;

+ (NSString *)getSaveFilePathString;

+(void)deletePictureFileDocuments;

+ (NSArray *)getPictureFilePath;

+ (BOOL)operatingWriteFile:(NSString *)fileStr NeedData:(NSData *)theData;

+ (NSString *)getTempVideoSaveFilePathString:(NSString *)videoName;

+ (void)deleteDocmentsFile:(NSString *)fileStr;
+ (void)deleteTempFile:(NSString *)fileStr;
+ (NSArray *)getPictureFilePathForPlay;  //生成视频之前，删除新目录的文件，拷贝图片(分帧）到新的目录，


+(NSString *)getSaveGifFilePathString;
+(NSArray *)getGifPictureFromPath;
+(void)deleteGifPictureInPath;



//获取目录下的所有文件
+ (NSArray *)getDataFromFilePath:(NSString *)FilePath;

//创建docment中文件目录及文件如：//doc/audio/shangxin.mp3
+ (NSString *)getDocmentSaveFilePathString:(NSString *)fileName filePath:(NSString *)filePath;

//创建docment中文件目录及文件如：//tmp/audio/shangxin.mp3
+ (NSString *)getTempSaveFilePathString:(NSString *)fileName filePath:(NSString *)filePath;

//删除doc中文件目录如：//doc/audio/
+(void)deleteFolderDocuments:(NSString *)FolderPath;

//删除tmp中文件目录如：//tmp/audio/
+(void)deleteFolderTemp:(NSString *)FolderPath;


@end
